package com.media.publish

import com.baselibrary.bean.ReleaseTopicBean
import com.baselibrary.net.result.HttpResult
import io.reactivex.Observable
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

interface CommunityApi {

    /**
     *
     */
    @FormUrlEncoded
    @POST("tag/recommendTag")
    fun reqDefSearchTopics(@Field("token") token: String): Observable<HttpResult<List<ReleaseTopicBean.DataBean>>>
    /**
     *
     */
    /**
     * 某个类型下的制定话题
     *type 0选择话题 1全部话题
     * @return
     */
    @FormUrlEncoded
    @POST("tag/tagListByTagCategoryId")
    fun reqSearchTopic(@Field("token") token: String, @Field("tagCategoryId") tagCategoryId: Long, @Field("size") size: Long, @Field("type") type: Int): Observable<HttpResult<List<ReleaseTopicBean.DataBean>>>

}